package T03_ThreadState;

public class S006 {
  public static void main(String[] args) throws InterruptedException {
    Object obj = new Object();
    Thread t1 = new Thread(() -> {
      synchronized (obj) {
        try {
          obj.wait();
        } catch (InterruptedException e) {
          e.printStackTrace();
        }
      }
    });
    t1.start();
    Thread.sleep(500);
    System.out.println(t1.getState());
  }
}
